package com.chixing.day06.clone;

public class School implements Cloneable{
    private String name;
    private SchoolBoss schoolBoss;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public School(String name, SchoolBoss schoolBoss) {
        this.name = name;
        this.schoolBoss = schoolBoss;
    }

    public School() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SchoolBoss getSchoolBoss() {
        return schoolBoss;
    }

    public void setSchoolBoss(SchoolBoss schoolBoss) {
        this.schoolBoss = schoolBoss;
    }

    @Override
    public String toString() {
        return "School{" +
                "name='" + name + '\'' +
                ", schoolBoss=" + schoolBoss +
                '}';
    }
}
